<template>
  <div class="yester-day">
    <div class="comic-card" v-for="(item, index) in cards" :key="index">
      <img :src="item.url" alt="">
      <p>{{ item.title }}</p>
      <span>{{ item.updated }}</span>
    </div>
  </div>
</template>

<script setup>
// 在这里写 Composition API 代码
import img1 from '../../../../assets/imgs/comic/updated_list/yesterday_img1.png'
const cards = [
  { url: img1, title: "航海王", updated: "更新至1154话" },
]
</script>

<style lang="scss" scoped>
.yester-day {

  .comic-card {

    img {
      width: 238px;
      height: 156px;
       border-radius: 8px;
    }
    span{
      color: rgba($color: (#000000), $alpha: .34);
      position: absolute;
      bottom: 48%;
    }
  }
}
</style>
